﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Classic.Master" Inherits="ModelViewPage<IList<EntryInfoDto>>" %>
<%@ Import Namespace="MvcContrib.UI.Grid" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Karta pacjenta</h2>

    <%=Html.Grid(Model).Columns(column=>{
        column.For(e => e.Date).Named("Data").Attributes(@class=>"center");
        column.For(e => e.Reason).Named("Powód");
        column.For(e => Html.ActionLink("Więcej", "Detail", new { id = e.Id }))
            .Named("Akcja")
            .DoNotEncode()
            .Attributes(@class=>"center");
    }).Empty("Brak wpisów w karcie pacjenta")%>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
